<template>
    <div>
        <gridView :url="url" :menuId="menuId" @otherClick="otherClick"></gridView>
        <permissionSelect ref="permissionSelect"></permissionSelect>
    </div>
</template>


<script>

import gridView from "@/components/common/gridView.vue";
import permissionSelect from "./permissionSelect.vue";
export default {
    data() {
        return {
            url:'',
            menuId:1,
            dialogObject:{formVisible:false,title:'选择'}
        };
    },
    created() {
        var url = this.$route.path;
        url = '/java'+url.substring(0, url.lastIndexOf('index')-1);
        this.url = url;
        this.menuId = this.$route.params.menuId;
    },
  
    mounted() {
        var _this = this;
    },
    methods: {
        otherClick(fun, row) {
            var _this = this;
            console.log(fun, row);
            if(fun.code=='QXPZ') {
                _this.$refs.permissionSelect.show(row.id);
            }
        }
    },
    components: { gridView, permissionSelect }
};
</script>